package Game;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.JPanel;

public class UltimateTicTacToeField extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9023276862333888922L;
	public static final int fields = 3;
	public static final int gap = 6;
	//public static final int size = GameField.size * fields + (fields - 1) * gap + 2 * (2 + gap);
	public static int size = TicTacToeField.size * fields + (fields + 1) * gap;

	public UltimateTicTacToeField() {
		//this.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		this.setLayout(new FlowLayout(FlowLayout.LEFT, gap, gap));
		this.setBackground(Color.black);
		this.setMaximumSize(new Dimension(size, size));
		this.setMinimumSize(new Dimension(size, size));
		this.setPreferredSize(new Dimension(size, size));
		for (int yy = 0; yy < 3; yy++) {
			for (int xx = 0; xx < 3; xx++) {
				this.add(new TicTacToeField(xx, yy));
			}
		}
	}
}
